<template>
  <div class="mod-pop" :class="isShow?'show':''">
    <!-- <button @click="show">插件内部按钮</button> -->
    <p>
      <span>注册成功</span>
    </p>
  </div>
</template>

<script>

  export default {
    name : 'v-dialog',
    data(){
      return {
        
      }
    },
    props : {
      isShow : {
        default : false
      }
    },
    methods : {
     show(){
      this.isShow = this.isShow
     } 
    }
  }

</script>
<style scoped>
  .mod-pop{
    position: fixed;
    top:10px;
    left: 20px;
    right: 20px;
    background-color: #6fabf7;
    border-radius: 4px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    transition: all .8s ease;
    opacity: 0;
    transform: translateY(-100%);
  }
  .show.mod-pop{
    opacity: 1;
    transform: translateY(0);
  }
</style>


